<?php
class Menu extends CWidget{
	public function run(){
		$language = strtoupper( Yii::app()->session->offSetGet( "FrontLanguage" ) );
		
		echo '<ul>
          <li><a href="' , Yii::app()->controller->createUrl( 'site/index' ) ,'"><img src="images/'.$language.'home.jpg" alt="home" /></a></li>
          <li><a href="' , Yii::app()->controller->createUrl( 'site/aboutus' ) ,'"><img src="images/'.$language.'about.jpg" alt="about us" /></a></li>
          <li><a href="' , Yii::app()->controller->createUrl( 'site/prodlist' ) ,'"><img src="images/'.$language.'product.jpg" alt="product" /></a></li>
          <li><a href="' , Yii::app()->controller->createUrl( 'site/faq' ) ,'"><img src="images/'.$language.'FAQ.jpg" alt="FAQ" /></a></li>
          <li><a href="' , Yii::app()->controller->createUrl( 'site/contact' ) ,'"><img src="images/'.$language.'contact.jpg" alt="contact" /></a></li>
       </ul>';
	}
}